﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace RegisterApp.Domain.Entities
{
    public class Team
    {
        [Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int TeamId { get; set; }
        public string Name { get; set; }
        public DateTime DateCreate { get; set; }
        public IList<Player> Players { get; set; }

       /* [ForeignKey("MatchId")]
        [Required]
        public int MatchId { get; set; }
        public Match Match { get; set; }*/

        public virtual Match Match { get; set; }
        
    }
}